//
//	MCActionDetailSecondActionAttentionList.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class MCActionDetailSecondActionAttentionList : NSObject, NSCoding, Mappable{

	var actionId : String?
	var attentionDescription : String?
	var attentionName : String?
	var attentionUrl : String?
	var createTime : String?
	var createUser : Int?
	var id : String?
	var isDeleted : Int?
	var sort : AnyObject?
	var updateTime : String?
	var updateUser : Int?
	var version : Int?


	class func newInstance(map: Map) -> Mappable?{
		return MCActionDetailSecondActionAttentionList()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		actionId <- map["actionId"]
		attentionDescription <- map["attentionDescription"]
		attentionName <- map["attentionName"]
		attentionUrl <- map["attentionUrl"]
		createTime <- map["createTime"]
		createUser <- map["createUser"]
		id <- map["id"]
		isDeleted <- map["isDeleted"]
		sort <- map["sort"]
		updateTime <- map["updateTime"]
		updateUser <- map["updateUser"]
		version <- map["version"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         actionId = aDecoder.decodeObject(forKey: "actionId") as? String
         attentionDescription = aDecoder.decodeObject(forKey: "attentionDescription") as? String
         attentionName = aDecoder.decodeObject(forKey: "attentionName") as? String
         attentionUrl = aDecoder.decodeObject(forKey: "attentionUrl") as? String
         createTime = aDecoder.decodeObject(forKey: "createTime") as? String
         createUser = aDecoder.decodeObject(forKey: "createUser") as? Int
         id = aDecoder.decodeObject(forKey: "id") as? String
         isDeleted = aDecoder.decodeObject(forKey: "isDeleted") as? Int
         sort = aDecoder.decodeObject(forKey: "sort") as? AnyObject
         updateTime = aDecoder.decodeObject(forKey: "updateTime") as? String
         updateUser = aDecoder.decodeObject(forKey: "updateUser") as? Int
         version = aDecoder.decodeObject(forKey: "version") as? Int

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if actionId != nil{
			aCoder.encode(actionId, forKey: "actionId")
		}
		if attentionDescription != nil{
			aCoder.encode(attentionDescription, forKey: "attentionDescription")
		}
		if attentionName != nil{
			aCoder.encode(attentionName, forKey: "attentionName")
		}
		if attentionUrl != nil{
			aCoder.encode(attentionUrl, forKey: "attentionUrl")
		}
		if createTime != nil{
			aCoder.encode(createTime, forKey: "createTime")
		}
		if createUser != nil{
			aCoder.encode(createUser, forKey: "createUser")
		}
		if id != nil{
			aCoder.encode(id, forKey: "id")
		}
		if isDeleted != nil{
			aCoder.encode(isDeleted, forKey: "isDeleted")
		}
		if sort != nil{
			aCoder.encode(sort, forKey: "sort")
		}
		if updateTime != nil{
			aCoder.encode(updateTime, forKey: "updateTime")
		}
		if updateUser != nil{
			aCoder.encode(updateUser, forKey: "updateUser")
		}
		if version != nil{
			aCoder.encode(version, forKey: "version")
		}

	}

}